package cn.mily.org.domain;

import cn.mily.basics.domain.BasicDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Product extends BasicDomain {

    /*服务名称*/
    private String name;
    /*服务图片*/
    private String resources;
    /* 售价 */
    private BigDecimal saleprice;
    /* 下架时间*/
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date offsaletime = new Date();
    /* 上架时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date onsaletime;
    /*服务状态*/
    private Integer state;
    /*打折*/
    private BigDecimal costprice;
    /*创建时间*/
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createtime = new Date();
    /* 点击量 */
    private Long salecount=0L;
    /*产品详情信息*/
    private ProductDetail productDetail;
}
